import HeaderBack from "@/components/HeaderBack";
import { getTranslations } from "next-intl/server";
import { ReactNode } from "react";
import styles from "./page.module.scss";

export default async function Layout({
    children,
    params: { locale },
}: {
    children: ReactNode;
    params: { locale: string };
}) {
    const t = await getTranslations("Header");
    return (
        <div className={styles.page}>
            <HeaderBack
                className={styles.fissionHeader}
                showBack={true}
                title={"Detalhes"}
                useBg={false}
            />
            <main className={"main-header"}>{children}</main>
        </div>
    );
}
